# Date	: 08/08/2012
# Author: Brother Rain
# Link	: https://www.google.com/doodles/hurdles-2012


import SendKeys
import time
print "Hi Google ^-^"

# click start game
import win32api, win32con
def click(x,y):
	win32api.SetCursorPos((x,y))
	win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0)
	win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0)

def double_click(x,y):
	win32api.SetCursorPos((x,y))
	win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0)
	win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0)

# start game
position_x = 350
position_y = 350
click(position_x, position_y)
print "Click"
time.sleep(1)
double_click(position_x, position_y)